package factory_pattern.abstract_factory_pattern;

import factory_pattern.abstract_factory_pattern.elf.ElfKingdomFactory;
import factory_pattern.abstract_factory_pattern.orc.OrcKingdomFactory;

/**
 * 客户端
 */
public class Client {

    public static void main(String[] args) {
        KingdomFactory factory = new ElfKingdomFactory();
        System.out.println(factory.createCastle().getDescription());
        System.out.println(factory.createKing().getDescription());

        KingdomFactory factory2 = new OrcKingdomFactory();
        System.out.println(factory2.createArmy().getDescription());
    }
}
